<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>党员风采</title>
    <link rel="stylesheet" href="../../addons/party_member/public/css/weui.min.css">
    <link rel="stylesheet" href="../../addons/party_member/public/css/jquery-weui.min.css">

    <!-- body 最后 -->
    <script src="../../addons/party_member/public/js/jquery.min.js"></script>
    <script src="../../addons/party_member/public/js/jquery-weui.min.js"></script>

    <!-- 如果使用了某些拓展插件还需要额外的JS -->
    <script src="../../addons/party_member/public/js/swiper.min.js"></script>
    <script src="../../addons/party_member/public/js/city-picker.min.js"></script>
    <script src="../../addons/party_member/public/js/function.js"></script>
    <style>
        body {
            margin: 0;
            padding: 0;

        }

        .box {
            position: relative;
            width: 100%;

            background: url("../addons/party_member/public/image/activityDetail/bg.png") no-repeat;
            background-size: 100% 100%;
        }

        .head {
            display: block;
            position: relative;
            width: 100%;
            height: 43px;
            background: #ffffff;
            text-align: center;
            font-size: 18px;
            line-height: 43px;
            font-family: -webkit-body;
            color: #333333;

        }

        .head_return {
            display: inline-block;
            position: absolute;
            left: 10px;
            top: 10px;
            width: 20px;
            height: 23px;
            background: url("../addons/party_member/public/image/evaluation/return.png") no-repeat;
            background-size: 12px 23px;

        }

        .banner {
            position: relative;
            display: block;
            width: 95%;
            height: 200px;
            margin: 10px auto;
            background: url("../addons/party_member/public/image/activities/acbg.png") no-repeat;
            background-size: 100% 200px;
        }

        .banner_info span {
            display: block;
            margin: auto;
            color: #ffffff;
        }

        .table_main {
            display: block;
            width: 100%;
            height: auto;
        }

        .table_head span {
            display: inline-block;
            position: absolute;
            left: 0;
            height: 20px;
            border-left: 5px solid red;
            padding-left: 10px;
            color: #a7a7a7;
        }

        .star_pic span {
            display: inline-block;
            margin: auto;
            width: 20px;
            height: 20px;
            background: url(../addons/party_member/public/image/evaluation/star.png) no-repeat;
            background-size: 20px 20px;
        }

        .more_info span {
            display: inline-block;
            width: 13px;
            height: 9px;
            background: url(../addons/party_member/public/image/evaluation/more_btn.png) no-repeat;
            background-size: 13px 9px;
        }

        .main:before {
            content: " ";
            position: absolute;
            width: 4px;
            border-top: 40px solid red;
            -webkit-transform-origin: 0 0;
            transform-origin: 0 0;
            -webkit-transform: scaleY(.5);
            transform: scaleY(.5);
            left: 0px;
            top: 13px;

        }

        .main {
            position: relative;
            padding: 10px 15px;
            color: #888888;
        }

        .footer:after {
            content: " ";
            display: inline-block;
            -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
            height: 13px;
            width: 13px;
            border-width: 0px 2px 2px 0;
            border-color: #c8c8cd;
            border-style: solid;

        }

        .message {
            padding:5px 15px;
            color: #333333;
            font-family: 微软雅黑;
            background: #fafafa;
            margin-top: 20px;
        }

        .message div {

            width: 100%;
            position: relative;

            /*padding-top: 20px;*/
            text-align: right;
        }

        .message div i {
            display: inline-block;
            width: 20px;
            height: 20px;
            background: url(../addons/party_member/public/image/branchStyle/iconLY.png) no-repeat;
            background-size: 20px 20px;
            position: absolute;
            right: 50px;
        }
    </style>
</head>
<body>

<div class="head">
    <span class="head_return"></span>
    党员风采
</div>


<div class="box">
    <div class="table_main">

        {loop $data['list'] $index $item}
        <div class="weui-tab__bd-item weui-tab__bd-item--active">
            <div class="weui-panel__bd">
                <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg"
                   style="padding-bottom: 0px;">
                    <div class="weui-media-box__hd">
                        <img class="weui-media-box__thumb" style="border-radius: 50%;width: 80%;height: 80%"
                             width="60" height="60"
                             src="{$item['memberinfo']['photo']}">
                    </div>
                    <div class="weui-media-box__bd">
                        <div class="weui-media-box__title" style="display: inline-block;width: 85%;color: #333333">
                            <p>{$item['memberinfo']['name']}</p>
                            <p>{$item['memberinfo']['title']}</p>
                        </div>
                    </div>

                </a>
            </div>
            <div style="display: block;padding:0 15px;color: #333333">
                <p>{$item['memberinfo']['info']}</p>
            </div>
        </div>

        <div style="width: 100%;padding: 15px 15px 35px 15px;position: relative;">
            <div class="zbdj" data-id="{$item['memberinfo']['id']}" style="position: absolute;left: 15px"><i
                    style="margin-right:10px ;display:inline-block;width: 20px;height:20px;background: url(../addons/party_member/public/image/pattern/logogood.png) no-repeat;background-size: 20px 20px"></i>
                <span class="num">{$item['memberinfo']['lovesum']}</span>
            </div>
            <div style="position: absolute;left: 100px"><i
                    style="margin:0 10px 0 20px ;display:inline-block;width: 20px;height:20px;background: url(../addons/party_member/public/image/pattern/logopj.png)no-repeat;background-size: 20px 20px"></i><span> {$item['memberinfo']['discuss']}</span>
            </div>
        </div>

        <div style="display:block;width: 100%">
            <div style="margin-top: 15px ;text-align: center">
                <span style="display: inline-block;width: 30px;height:15px;background: url(../addons/party_member/public/image/branchStyle/iconL.png) no-repeat;background-size: 30px 15px"></span>
                <span style="display: inline-block;">精选留言</span>
                <span style="display:inline-block;width: 30px;height:15px;background: url(../addons/party_member/public/image/branchStyle/iconL.png) no-repeat;background-size: 30px 15px"></span>
            </div>



            <div class="message">
                {loop $item['message'] $index $item2}
<!--                <p>{$item2['membername']}</p>
                <p>{$item2['message']}</p>
                <p>{$item2['mestime']}</p>-->
                <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg">
                    <div class="weui-media-box__bd">
                        <div class="weui-media-box__title">
                            <p align="left">{$item2['membername']}</p>
                            <p align="left">{$item2['message']}</p>
                            <p style="color: #cccccc" align="left">{$item2['mestime']}</p>
                        </div>
                    </div>
                </a>
                {/loop}

                <a href="{php echo $this->createMobileUrl('Discuss',array('type'=>2,'id'=>$item['memberinfo']['id']))}">
                    <div style="position: relative;right: 0;"><i></i><span style="color:#01b1f5">写留言</span></div>
                </a>

            </div>


            <!--    <div class="footer" style="text-align: center;padding: 10px 0;color: #888888;border-top: 1px solid #cccccc">
                   查看更多留言
                </div>-->
        </div>

        {/loop}
    </div>
</div>


<script>
    $(function () {
        $(".zbdj").click(function () {
            var partyid = $(this).attr('data-id');

            var that = this;
            $.showLoading();
            $.post('{php echo $this->createMobileUrl("PartyLoveAjax")}',{
                id:partyid,
                type:1
            },function (data) {
                $.hideLoading();
                if(data['status']){
                    $(that).find(".num").text(data.result.lovesum);
                }else{
                    $.alert(data['result'], "提示");
                }
            },'json')

        })
    })
</script>
</body>
</html>